<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html>
<head>
    <title>Title</title>
    <meta charset="UTF-8">
</head>
<body>
<form action="fruit.html?act=add" method="post">
    分类：<select name="categoryId">
    <option value="">请选择</option>
    <c:forEach items="${categoryList}" var="cat">
        <option value="${cat.id}">${cat.name}</option>
    </c:forEach>
</select><br/>
    名称：<input type="text" name="name"/><br/>
    产地：<input type="text" name="place"/><br/>
    重量：<input type="text" name="weight"/>KG<br/>
    单价：<input type="text" name="price"/>元<br/>
    <input type="submit" value="添加"/><br/>
</form>
</body>
</html>
